package com.example.demo;

import org.noear.solon.annotation.*;

import java.util.Map;

/**
 * @author airhead
 */
// @Controller
// @Mapping(value = "demo")
public class DemoClientImpl implements DemoClient {
  @Override
  @Post
  @Mapping(value = "hello")
  public String hello(
      @Param(value = "welcome") String welcome, @Param(value = "name") String name) {
    return welcome + " " + name;
  }

  @Override
  public String hello2(Map<String, String> body) {
    return "";
  }

  @Override
  public String hello3(String welcome, Map<String, String> body) {
    return "";
  }
}
